/**
 * Created by Administrator on 2017/7/7 0007.
 */
define([],function() {
    var tpl={};
    tpl.init=function(){
        var html = '';
        html += queueList();
        return html;
    };
    var queueList=function(){
        return '<script id="queuelist-tpl" type="text/html">' +
            '<div class="clear" queueId="{{id}}">'+
                '<div>{{queueName}}</div>'+
                '<div>'+
                    '<ul>'+
                        '<li class="clear lis-title">'+
                            '<div>建立时间</div>'+
                            '<div>目标人数完成比</div>'+
                            '<div>应用方案</div>'+
                        '</li>'+
                        '<li class="lis-content">'+
                            '<div class="border-left new-time">{{createTime}}</div>'+
                            '<div class="new-progress">'+
                                '<div class="new-number">{{currNum}}/{{targetNum}}</div>'+
                                '<div class="pro">'+
                                    '<div class="progress-bar" style="width:{{width}}"></div>'+
                                '</div>'+
                            '</div>'+
                            '<div class="border-right new-name">{{schemeName}}</div>'+
                        '</li>'+
                    '</ul>'+
                '</div>'+
                '<div>'+
                    '<div class="text-center lis-title">团队医生</div>'+
                    '<ul class="text-center doctor-title" id="doctor-title">'+
                        '{{each doctorRows as rows}}'+
                            '{{if rows.picture}}'+
                            '<li>' +
                                '<div class="img"><img src="{{rows.picture}}" alt=""/></div>' +
                                '<font>{{rows.doctorName}}</font>'+
                            '</li>'+
                            '{{else}}'+
                            '<li><div class="img">无</div><font>{{rows.doctorName}}</font></li>'+
                            '{{/if}}'+
                        '{{/each}}'+
                        '<li class="doctor-total"><div class="img">共<span>{{doctorTotal}}</span>人</div></li>'+
                    '</ul>'+
                 '</div>'+
            ' </div>'+
        '</script>';
    };
    return tpl;
});

